resource "huaweicloud_compute_instance" "mod_ecs" {
  name                        = var.ecs_name
  image_id                    = var.image_id
  flavor_id                   = var.flavor_id
  key_pair                    = var.key_pair
  availability_zone           = var.ava_zone
  security_group_ids          = [var.vsg_ids]
  system_disk_type            = var.disk_type
  system_disk_size            = var.disk_size
  delete_disks_on_termination = false
  user_data                   = var.user_data
  eip_id                      = var.eip_id
  network {
    uuid = var.subnet_id
  }
}